home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2012 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem with program
  5. Date: Thu, 18 Jan 1996 13:24:19 GMT
  6. Organization: Netcom
  7. Message-ID: <30fe499a.66295808@nntp.ix.netcom.com>
  8. References: <4dkr5u$ro7@hasle.sn.no>
  9. NNTP-Posting-Host: ix-dc8-24.ix.netcom.com
  10. X-NETCOM-Date: Thu Jan 18  5:24:04 AM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. elvemo@sn.no (Rune Elvemo) wrote:
  14.  
  15. > Anyone who can figure out what is wrong with this program?
  16. > I tried to compile it, but my compiler wouldn't.....
  17. > Ex: It said that the prototype needed a semicolon, but it
  18. > don't.........
  19. > /* Loadfile.c - loads a txt file, and shows it 
  20. > **
  21. > **
  22. > */
  23. > #include <stdio.h>
  24. > struct Text
  25. > {
  26. > char *str;
  27. > struct Text *next;
  28. > }
  29.  
  30.    ^ Missing semicolon
  31.  
  32. > enum BOOL { TRUE, FALSE };
  33. > /* prototype */
  34. > void PText(struct Text *);
  35.  
  36. [remainder of original deleted]
  37.  
  38. Either the message is poorly worded or you are misreading it.  The
  39. missing semicolon is after the definition of struct Text, not in the
  40. prototype.
  41.  
  42. Michael M Rubenstein
  43.